<template>
  <formitem-wapper :formitem="formitem">
    <j-tree-select
      :placeholder="placeholder"
      v-bind="widgetAttrs"
      v-decorator="[formitem.key,formitem.fieldDecoratorOptions]"
      :dict="formitem.dict"
      :pidField="formitem.pidField"
      :pidValue="formitem.pidValue"
      :hasChildField="formitem.hasChildField">
    </j-tree-select>
  </formitem-wapper>
</template>

<script>
  import FormitemWapper from './../FormitemWapper.vue'
  import {FormItemMixin} from './../FormItenMixin'
  import JTreeSelect from '@/components/jeecg/JTreeSelect'

  export default {
    name: 'TreeSelectWidget',
    mixins:[FormItemMixin],
    components:{
      FormitemWapper,
      JTreeSelect
    },
    created(){
      //console.log("formitem.dict",this.formitem.dict)
      ///console.log("formitem.dict",this.formitem.pidValue)
      //console.log("formitem.pidField",this.formitem.pidField)
    }
  }
</script>
